package saeildamil.ch18.thread;

import javax.swing.JOptionPane;

public class MultiThreadEx01 {
	public static void main(String[] args) {
		//0~9까지 thread로 실행
		DigitThreadEx thread1=new DigitThreadEx();
		DigitThreadEx thread2=new DigitThreadEx();
		AlphabetThreadEx thread3=new AlphabetThreadEx();
		//thread.run();//run()메소드가 실행 Thread로 동작하지 않는다
		
		/*thread1.start();
		thread2.start();
		thread3.start(); */
		
		thread1.run();
		thread2.run();
		thread3.run(); 
		
		String message="main thread 종료";
		JOptionPane.showMessageDialog(null, message);
	}
}
